package cn.shlbysj.demo.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ArtInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ArtInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andArtIdIsNull() {
            addCriterion("art_id is null");
            return (Criteria) this;
        }

        public Criteria andArtIdIsNotNull() {
            addCriterion("art_id is not null");
            return (Criteria) this;
        }

        public Criteria andArtIdEqualTo(String value) {
            addCriterion("art_id =", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdNotEqualTo(String value) {
            addCriterion("art_id <>", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdGreaterThan(String value) {
            addCriterion("art_id >", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdGreaterThanOrEqualTo(String value) {
            addCriterion("art_id >=", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdLessThan(String value) {
            addCriterion("art_id <", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdLessThanOrEqualTo(String value) {
            addCriterion("art_id <=", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdLike(String value) {
            addCriterion("art_id like", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdNotLike(String value) {
            addCriterion("art_id not like", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdIn(List<String> values) {
            addCriterion("art_id in", values, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdNotIn(List<String> values) {
            addCriterion("art_id not in", values, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdBetween(String value1, String value2) {
            addCriterion("art_id between", value1, value2, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdNotBetween(String value1, String value2) {
            addCriterion("art_id not between", value1, value2, "artId");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNull() {
            addCriterion("type_id is null");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNotNull() {
            addCriterion("type_id is not null");
            return (Criteria) this;
        }

        public Criteria andTypeIdEqualTo(Integer value) {
            addCriterion("type_id =", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotEqualTo(Integer value) {
            addCriterion("type_id <>", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThan(Integer value) {
            addCriterion("type_id >", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("type_id >=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThan(Integer value) {
            addCriterion("type_id <", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("type_id <=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdIn(List<Integer> values) {
            addCriterion("type_id in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotIn(List<Integer> values) {
            addCriterion("type_id not in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("type_id between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("type_id not between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andArtNameIsNull() {
            addCriterion("art_name is null");
            return (Criteria) this;
        }

        public Criteria andArtNameIsNotNull() {
            addCriterion("art_name is not null");
            return (Criteria) this;
        }

        public Criteria andArtNameEqualTo(String value) {
            addCriterion("art_name =", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameNotEqualTo(String value) {
            addCriterion("art_name <>", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameGreaterThan(String value) {
            addCriterion("art_name >", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameGreaterThanOrEqualTo(String value) {
            addCriterion("art_name >=", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameLessThan(String value) {
            addCriterion("art_name <", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameLessThanOrEqualTo(String value) {
            addCriterion("art_name <=", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameLike(String value) {
            addCriterion("art_name like", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameNotLike(String value) {
            addCriterion("art_name not like", value, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameIn(List<String> values) {
            addCriterion("art_name in", values, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameNotIn(List<String> values) {
            addCriterion("art_name not in", values, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameBetween(String value1, String value2) {
            addCriterion("art_name between", value1, value2, "artName");
            return (Criteria) this;
        }

        public Criteria andArtNameNotBetween(String value1, String value2) {
            addCriterion("art_name not between", value1, value2, "artName");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andArtCountIsNull() {
            addCriterion("art_count is null");
            return (Criteria) this;
        }

        public Criteria andArtCountIsNotNull() {
            addCriterion("art_count is not null");
            return (Criteria) this;
        }

        public Criteria andArtCountEqualTo(Integer value) {
            addCriterion("art_count =", value, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountNotEqualTo(Integer value) {
            addCriterion("art_count <>", value, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountGreaterThan(Integer value) {
            addCriterion("art_count >", value, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("art_count >=", value, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountLessThan(Integer value) {
            addCriterion("art_count <", value, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountLessThanOrEqualTo(Integer value) {
            addCriterion("art_count <=", value, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountIn(List<Integer> values) {
            addCriterion("art_count in", values, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountNotIn(List<Integer> values) {
            addCriterion("art_count not in", values, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountBetween(Integer value1, Integer value2) {
            addCriterion("art_count between", value1, value2, "artCount");
            return (Criteria) this;
        }

        public Criteria andArtCountNotBetween(Integer value1, Integer value2) {
            addCriterion("art_count not between", value1, value2, "artCount");
            return (Criteria) this;
        }

        public Criteria andIsHotIsNull() {
            addCriterion("is_hot is null");
            return (Criteria) this;
        }

        public Criteria andIsHotIsNotNull() {
            addCriterion("is_hot is not null");
            return (Criteria) this;
        }

        public Criteria andIsHotEqualTo(Integer value) {
            addCriterion("is_hot =", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotNotEqualTo(Integer value) {
            addCriterion("is_hot <>", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotGreaterThan(Integer value) {
            addCriterion("is_hot >", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_hot >=", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotLessThan(Integer value) {
            addCriterion("is_hot <", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotLessThanOrEqualTo(Integer value) {
            addCriterion("is_hot <=", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotIn(List<Integer> values) {
            addCriterion("is_hot in", values, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotNotIn(List<Integer> values) {
            addCriterion("is_hot not in", values, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotBetween(Integer value1, Integer value2) {
            addCriterion("is_hot between", value1, value2, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotNotBetween(Integer value1, Integer value2) {
            addCriterion("is_hot not between", value1, value2, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsRecomIsNull() {
            addCriterion("is_recom is null");
            return (Criteria) this;
        }

        public Criteria andIsRecomIsNotNull() {
            addCriterion("is_recom is not null");
            return (Criteria) this;
        }

        public Criteria andIsRecomEqualTo(Integer value) {
            addCriterion("is_recom =", value, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomNotEqualTo(Integer value) {
            addCriterion("is_recom <>", value, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomGreaterThan(Integer value) {
            addCriterion("is_recom >", value, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_recom >=", value, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomLessThan(Integer value) {
            addCriterion("is_recom <", value, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomLessThanOrEqualTo(Integer value) {
            addCriterion("is_recom <=", value, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomIn(List<Integer> values) {
            addCriterion("is_recom in", values, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomNotIn(List<Integer> values) {
            addCriterion("is_recom not in", values, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomBetween(Integer value1, Integer value2) {
            addCriterion("is_recom between", value1, value2, "isRecom");
            return (Criteria) this;
        }

        public Criteria andIsRecomNotBetween(Integer value1, Integer value2) {
            addCriterion("is_recom not between", value1, value2, "isRecom");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andArtUrlIsNull() {
            addCriterion("art_url is null");
            return (Criteria) this;
        }

        public Criteria andArtUrlIsNotNull() {
            addCriterion("art_url is not null");
            return (Criteria) this;
        }

        public Criteria andArtUrlEqualTo(String value) {
            addCriterion("art_url =", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlNotEqualTo(String value) {
            addCriterion("art_url <>", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlGreaterThan(String value) {
            addCriterion("art_url >", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlGreaterThanOrEqualTo(String value) {
            addCriterion("art_url >=", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlLessThan(String value) {
            addCriterion("art_url <", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlLessThanOrEqualTo(String value) {
            addCriterion("art_url <=", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlLike(String value) {
            addCriterion("art_url like", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlNotLike(String value) {
            addCriterion("art_url not like", value, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlIn(List<String> values) {
            addCriterion("art_url in", values, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlNotIn(List<String> values) {
            addCriterion("art_url not in", values, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlBetween(String value1, String value2) {
            addCriterion("art_url between", value1, value2, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtUrlNotBetween(String value1, String value2) {
            addCriterion("art_url not between", value1, value2, "artUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlIsNull() {
            addCriterion("art_vedio_url is null");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlIsNotNull() {
            addCriterion("art_vedio_url is not null");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlEqualTo(String value) {
            addCriterion("art_vedio_url =", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlNotEqualTo(String value) {
            addCriterion("art_vedio_url <>", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlGreaterThan(String value) {
            addCriterion("art_vedio_url >", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlGreaterThanOrEqualTo(String value) {
            addCriterion("art_vedio_url >=", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlLessThan(String value) {
            addCriterion("art_vedio_url <", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlLessThanOrEqualTo(String value) {
            addCriterion("art_vedio_url <=", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlLike(String value) {
            addCriterion("art_vedio_url like", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlNotLike(String value) {
            addCriterion("art_vedio_url not like", value, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlIn(List<String> values) {
            addCriterion("art_vedio_url in", values, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlNotIn(List<String> values) {
            addCriterion("art_vedio_url not in", values, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlBetween(String value1, String value2) {
            addCriterion("art_vedio_url between", value1, value2, "artVedioUrl");
            return (Criteria) this;
        }

        public Criteria andArtVedioUrlNotBetween(String value1, String value2) {
            addCriterion("art_vedio_url not between", value1, value2, "artVedioUrl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}